/**
 * Created by quxiangqian on 2018/6/5.
 */
export  class Panel extends React.Component {
    getHeader=()=>{

      return this.header;
    }
    getBody=()=>{
      return this.body;
    }
    render(){
        return (
            <div className={"panel "+this.props.css} style={this.props.style}>
                <div className="head" ref={r=>this.header=r}>{this.props.title}</div>
                <div className="body" ref={r=>this.body=r}>{this.props.children}</div>
            </div>
        )
    }
}
